package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.annotation.Excel;
import com.ly.common.core.domain.BaseEntity;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 客户更多联系人
 * </p>
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@TableName ("erp_contacts_info")
@ApiModel (value = "客户更多联系人", description = "客户更多联系人")
public class ContactsEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("联系人姓名")
    @TableField ("name")
    private String name;

    @ApiModelProperty ("联系人职位")
    @TableField ("position")
    private String position;

    @Excel (name = "联系人性别", readConverterExp = "0=男,1=女,2=未知")
    @TableField (value = "sex")
    @ApiModelProperty (value = "用户性别")
    private String sex;


    @Excel (name = "联系人所属业务类型")
    @TableField (value = "type")
    @ApiModelProperty (value = "联系人所属业务类型")
    private String type;


    @ApiModelProperty ("联系人手机")
    @TableField ("phone")
    private String phone;

    @ApiModelProperty ("联系人电话")
    @TableField ("tel")
    private String tel;

    /** 传真 */
    @ApiModelProperty("传真")
    @TableField("facsimile")
    @Excel(name = "传真")
    private String facsimile;

    @ApiModelProperty ("联系人邮箱")
    @TableField ("email")
    private String email;


    /** 地址名称 */
    @ApiModelProperty("地址名称")
    @TableField("address")
    @Excel(name = "地址名称")
    private String address;

    /** 地点编码 */
    @ApiModelProperty("地点编码")
    @TableField("address_code")
    @Excel(name = "地点编码")
    private String addressCode;

    /** 详细地址 */
    @ApiModelProperty("详细地址")
    @TableField("detail_address")
    @Excel(name = "详细地址")
    private String detailAddress;

    @ApiModelProperty ("联系人备注")
    @TableField ("remarks")
    private String remarks;

    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    private Date createTime;

    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    private Date changeTime;

    @ApiModelProperty ("所属客户Id")
    @TableField ("customer_id")
    private String customerId;

    /** 是否设置默认 */
    @ApiModelProperty("是否设置默认")
    @TableField("is_default")
    @Excel(name = "是否设置默认")
    private String isDefault;

    @TableField ("is_used")
    private Integer isUsed;


}
